package com.demo.main.vo;

import com.demo.main.entity.Notice;

public class NoticeVo extends Notice {
    // 发布日期时间
    private String publishDateString;

    public NoticeVo(Notice notice) {
        this.noticeId = notice.getNoticeId();
        this.title = notice.getTitle();
        this.content = notice.getContent();
        this.publishDate = notice.getPublishDate();
        this.publisherId = notice.getPublisherId();
    }

    public String getPublishDateString() {
        return publishDateString;
    }

    public void setPublishDateString(String publishDateString) {
        this.publishDateString = publishDateString;
    }

    @Override
    public String toString() {
        return "NoticeVo{" +
                "publishDateString='" + publishDateString + '\'' +
                ", noticeId=" + noticeId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", publishDate=" + publishDate +
                ", publisherId=" + publisherId +
                '}';
    }
}
